package com.yunfei.bo.userOperLog;
import com.yunfei.entity.userOperLog.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename USER_OPER_LOG
*@author zhengyunfei
*@createDate Thu Jan 17 14:22:26 CST 2019
*/ 
public class UserOperLogBo implements java.io.Serializable{
	private String browMdl;
	private String userId;
	private String browDate;
	private String browDtlId;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		int value=(curNo-1)*curSize;
		return value;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setBrowMdl(String browMdl){
		this.browMdl=browMdl;
	}
	public String getBrowMdl(){
		return browMdl;
	}
	public void setUserId(String userId){
		this.userId=userId;
	}
	public String getUserId(){
		return userId;
	}
	public void setBrowDate(String browDate){
		this.browDate=browDate;
	}
	public String getBrowDate(){
		return browDate;
	}
	public void setBrowDtlId(String browDtlId){
		this.browDtlId=browDtlId;
	}
	public String getBrowDtlId(){
		return browDtlId;
	}
	public static UserOperLogEntity boToEntity(UserOperLogBo bo){
		UserOperLogEntity entity=new UserOperLogEntity();
		entity.setBrowMdl(bo.getBrowMdl());
		entity.setUserId(bo.getUserId());
		entity.setBrowDate(bo.getBrowDate());
		entity.setBrowDtlId(bo.getBrowDtlId());
		return entity;
	}
	public static UserOperLogBo entityToBo(UserOperLogEntity bo){
		UserOperLogBo entity=new UserOperLogBo();
		entity.setBrowMdl(bo.getBrowMdl());
		entity.setUserId(bo.getUserId());
		entity.setBrowDate(bo.getBrowDate());
		entity.setBrowDtlId(bo.getBrowDtlId());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("browMdl")){
					result="BROW_MDL";
				}
				if(field.equals("userId")){
					result="USER_ID";
				}
				if(field.equals("browDate")){
					result="BROW_DATE";
				}
				if(field.equals("browDtlId")){
					result="BROW_DTL_ID";
				}
		}
		return result;
	}
}

